package com.adou.second.file;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

/**
 * 换行与追加
 * @author Administrator
 *
 */
public class FileDemo2 {

	public static void main(String[] args) throws Exception {
		FileOutputStream fos = new FileOutputStream("fos\\b.txt");
		for (int i = 0; i < 10; i++) {
			fos.write("Hello".getBytes());
			fos.write("\r\n".getBytes());
		}
		fos.close();
	}

}
